<?php

defined('_JEXEC') or die('Restricted access');

class Group_Model extends Model {

    /**
     * database table name: group
     * database table fields: id, name, description, date_created
     * 
     */
    public function __construct() {
        parent::__construct(__CLASS__, "group");
    }

    public function getAll_Records() {
        return parent::getAll_Records();
    }

    /**
     * @param String $field The column name of a table in a database
     */
    public function getAllRecords_By($field) {
        return parent::getAllRecords_By($field);
    }

    /**
     *
     * @param String $field
     * @param String $value
     */
    public function getSingleRecord_By($field, $value) {
        return parent::getSingleRecord_By($field, $value);
    }

    /**
     *
     * @param String $field
     * @param String $value
     * @return boolean 
     */
    public function recordExists($field, $value) {
        return parent::recordExists($field, $value);
    }

    /**
     *
     * @param array $data
     * @return integer
     */
    public function create($data) {
        return parent::create($data);
    }

    /**
     *
     * @param array $data An associative array
     * @param string $where the WHERE query part
     */
    public function update($data, $where) {
        return parent::update($data, $where);
    }

    /**
     *
     * @param string $where the WHERE query part
     */
    public function delete_All($where) {
        return parent::delete_All($where);
    }

    /**
     *
     * @param string $where the WHERE query part
     */
    public function delete_SingleRecord($where) {
        return parent::delete_SingleRecord($where);
    }

}

?>
